Diffusion-based interactive extrusion of two-dimensional images into three-dimensional models

ABSTRACT

Methods and systems for creating three-dimensional models from two-dimensional images are provided. According to one embodiment, a method of creating an inflatable icon involves a vectorizing module polygonizing an input image to produce an inflatable image by representing a set of pixels making up the input image as polygons. The inflatable image is then extruded by an extrusion module by generating appropriate z-coordinate values for a reference point associated with each polygon of the inflatable image based upon a biased diffusion process. End-user controlled pressure modulation is supported by an interface module by (i) adjusting one or more modulation functions employed by the biased diffusion process based upon end-user input regarding relative modulation bias for a selected set of one or more pixels associated with the inflatable image or (ii) applying the biased diffusion process to only the selected set of one or more pixels.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation-in-part of U.S. patent applicationSer. No. 11/122,513, filed on May 4, 2005, which claims the benefit ofpriority to U.S. Provisional Patent Application No. 60/568,214, filed onMay 4, 2004, both of which are hereby incorporated by reference in theirentirety for all purposes.

COPYRIGHT NOTICE

Contained herein is material that is subject to copyright protection.The copyright owner has no objection to the facsimile reproduction ofthe patent disclosure by any person as it appears in the Patent andTrademark Office patent files or records, but otherwise reserves allrights to the copyright whatsoever. Copyright© 2004-2009, AgentSheets,Inc.

BACKGROUND

1. Field

Embodiments of the present invention relate generally to creation ofthree dimensional (“3D”) models. More particularly, embodiments of thepresent invention relate to methods and techniques of interactivelyextruding two dimensional (“2D”) pixel-based images into polygon-based3D models.

2. Description of the Related Art

While three dimensional (3D) content has certainly managed to becomeaccessible in most households in form of game consoles and personalcomputers, it largely remains an artifact that is consumed but notproduced by end-users. Nowadays end-user development is quicklyadvancing and end-users employ all kinds of authoring tools such as wordprocessors and slide presentation tools to author their own content. 3Dcontent is lagging behind not because of a hardware challenge—on thecontrary, even the cheapest Personal Computers (PCs) now feature amazing3D rendering capabilities—but because 3D authoring tools are mostlygeared towards professional developers with proper training, time andmotivation. Most 3D authoring tools use compositional approaches thathave grown out of Computer Automated Design (CAD) software packages byconceptually extruding two dimensional (2D) authoring approaches to 3D.Instead of composing 2D models from rectangles and circles, usersconstruct 3D models from cubes and spheres. While certainly feasible forprofessional users, these approaches can be inefficient and awkward inthe hands of computer end-users trying to assemble irregular shapedmodels.

Sketching approaches are highly promising for the 3D end-userdevelopment. Sketching, often using pen-based interfaces and gestures,allows user to directly draw or annotate shapes. One line of work usesdomain semantics to disambiguate sketches. One example, the ElectronicCocktail Napkin system, interprets pen drawn sketches to create diagramswith semantics by matching sketches against a large and expandable setof graphical primitives with user defined semantics. Digital Clay isanother example which not only recognizes sketches, but can alsoconstruct appropriate 3D models. Sketch VR recognizes 2D geometricshapes that it can project into 3D architectural spaces. Gesture-basedinterfaces have also been used to create 3D models of mechanicaldesigns. In CADICAM applications models are built by gradually attachingfacets to 3D structures.

Freestyle sketching approaches do not rely on domain knowledge, but usesketching to create arbitrary 3D objects that are not interpretedsemantically by the computer. Teddy is a sketching interface to createall kinds of sophisticated 3D models that “have a hand-crafted feel(such as sculptures and stuffed animals) which is difficult toaccomplish with most conventional modelers.” Teddy's inflation mechanismis based on closed regions. It does not use image information togenerate models nor does it include texturing tools. Models created withTeddy do not include skins and need to be textured with third partypainting applications.

A number of image-based extrusion approaches add three-dimensionallooking effects to two-dimensional images without creating treedimensional models. William's automatic airbrush creates compellingthree-dimensional illustrations out of images by applying complexshading functions to selected regions. Simpler versions of this idea arefound in popular paint programs. For instance, the bevel function inPhotoshop is often used to create three-dimensional looking versions oftwo dimensional shapes such as 3D buttons. However, the results of thesealgorithms remain two-dimensional shapes with no user-accessible 3Dmodel information.

Hence, there exists a need in the art for systems, methods, andtechniques offering the ability for interactively extruding 2Dpixel-based images into polygon based 3D models.

SUMMARY

Methods and systems are described for creating three-dimensional modelsfrom two-dimensional images. According to one embodiment, a method ofcreating an inflatable icon involves a vectorizing module polygonizingan input image to produce an inflatable image by representing a set ofpixels making up the input image as polygons. The inflatable image isthen extruded by an extrusion module by generating appropriatez-coordinate values for a reference point associated with each polygonof the inflatable image based upon a biased diffusion process. End-usercontrolled pressure modulation is supported by an interface module by(i) adjusting one or more modulation functions employed by the biaseddiffusion process based upon end-user input regarding relativemodulation bias for a selected set of one or more pixels associated withthe inflatable image or (ii) applying the biased diffusion process toonly the selected set of one or more pixels.

In the aforementioned embodiment, representing the set of pixels as aplurality of polygons involves representing each pixel in the set ofpixels as multiple triangles.

In various of the aforementioned embodiments, the method may furtherinvolve the interface module providing visual feedback to an end-user byrendering a current state of the inflatable image on a display deviceduring an intermediate point of said biased diffusion process.

In the context of various of the aforementioned embodiments, the methodfurther involves the interface module allowing end-user controlledcolor-based pressure modulation by adjusting color modulation functionsemployed by the biased diffusion process based upon end-user inputregarding relative modulation bias for one or more colors associatedwith the input image.

In some instances of the aforementioned embodiments, the input image mayrepresent a three dimensional image.

In various of the aforementioned embodiments, the method may involveprior to polygonizing the input image, generating the input image byreceiving a large image, generating a down sampled image by downsampling the large image, and using the down sampled image as the inputimage. After extruding the inflatable image, the large image may beapplied as skin on the extruded inflatable image.

Other embodiments of the present invention provide a program storagedevice readable by a computer system, tangibly embodying a program ofinstructions executable by one or more processors of the computer systemto perform method steps for creating an inflatable icon. The methodsteps include polygonizing an input image to produce the inflatable iconby representing a set of pixels making up the input image as multiplepolygons. The inflatable icon is extruded by generating appropriatez-coordinate values for a reference point associated with each polygonof the inflatable icon based upon a biased diffusion process. End-usercontrolled pressure modulation is supported by (i) adjusting one or moremodulation functions employed by the biased diffusion process based uponend-user input regarding relative modulation bias for a selected set ofone or more pixels associated with the inflatable icon or (ii) applyingthe biased diffusion process to only the selected set of one or morepixels.

Other features of embodiments of the present invention will be apparentfrom the accompanying drawings and from the detailed description thatfollows.

BRIEF DESCRIPTION OF THE DRAWINGS

Embodiments of the present invention are illustrated by way of example,and not by way of limitation, in the figures of the accompanyingdrawings and in which like reference numerals refer to similar elementsand in which:

FIG. 1 depicts a 2D lobster icon 100 which will be turned into anInflatable Icon in accordance with an embodiment of the presentinvention;

FIG. 2 illustrates a polygonization 200 of the 2D lobster icon of FIG. 1according to one embodiment of the present invention;

FIG. 3A illustrates a 3D version 300 of the polygonized lobster icon 200with a constant z-value for each polygon according to one embodiment ofthe present invention;

FIGS. 3B-3C depict the application of an extrusion process to the 3Dlobster image 300 of FIG. 3A according to one embodiment of the presentinvention;

FIGS. 4-5 depict the extruded 3D lobster image of FIG. 3C with filledpolygons and enabled lighting (400, 500) to make it resemble a solidobject in accordance with one embodiment of the present invention;

FIG. 6A depicts a 1 bit alpha circle icon 600 manifesting highly visiblealiasing;

FIG. 6B illustrates the result of an icon inflation process inaccordance with one embodiment of the present invention on FIG. 6A;

FIG. 7A depicts a perspective view 700 of FIG. 6B;

FIG. 7B depicts FIG. 6B after performing antialiasing in accordance withone embodiment of the present invention;

FIG. 8A illustrates a 2D heart icon 800;

FIG. 8B illustrates a 3D heart icon resulting from application of adiffusion and clipping process to the 2D hear icon 800 of FIG. 8A inaccordance with one embodiment of the present invention;

FIG. 9A depicts a 2D teddy bear icon 900;

FIG. 9B illustrates the uniformly inflated version of the 2D teddy bearicon 900 of FIG. 9A in accordance with one embodiment of the presentinvention;

FIG. 9C illustrates a non-uniformly inflated version 950 of the 2D teddybear icon 900 of FIG. 9A using a modulated pressure in accordance withone embodiment of the present invention;

FIG. 10A illustrates a uniformly inflated 3D frog icon 1000 inaccordance with one embodiment of the present invention;

FIG. 10B illustrates a non-uniformly inflated 3D frog icon 1050 using amodulated pressure in accordance with one embodiment of the presentinvention;

FIG. 11A illustrates a 2D rock icon 1100 to be inflated;

FIG. 11B illustrates an inflated version of the 2D rock icon 1100 ofFIG. 11A in accordance with one embodiment of the present invention;

FIG. 12 represents a noise enhanced version 1200 of the 3D rock of FIG.11B after random noise is added to each z-component of the inflated iconin accordance with one embodiment of the present invention;

FIGS. 13A-13B represent the 3D rock 1200 after various cycles of adiffusion process have been applied in accordance with one embodiment ofthe present invention;

FIG. 14 illustrates a graphical user interface 1400, which facilitatesdesign exploration, in accordance with one embodiment of the presentinvention;

FIG. 15 is an exemplary computer system 1500 which may be used inaccordance with various embodiments of the present invention;

FIG. 16 is a flow diagram illustrating an image extrusion process 1600according to one embodiment of the present invention.

DETAILED DESCRIPTION

Methods are described for a biased diffusion technique controlled by 2Dimages to allow end-users to efficiently design 3D objects. Variousembodiments of the present invention seek to enable end-users to createsimple 3D models based upon 2D images. In many cases some suitable 2Dartwork can be relatively easily found or produced to serve as input foran interactive 2D to 3D transformation process. According to oneembodiment, referred to herein as “Inflatable Icons,” 2D pixel-basedimages are interactively extruded into polygon-based 3D models withminimal input required by end-users. In one embodiment, Inflatable Iconscombine diffusion-based image extrusion with a number of interactivelycontrollable parameters to allow end-users to efficiently design 3Dobjects.

According to one embodiment, end-users are provided with the ability tointeractively steer the extrusion process through user controllableparameters in order to create intricate 3D objects.

In contrast to Teddy and related sketch-based approaches, according toone embodiment, Inflatable Icons start as 2D icons. These icons may beproduced by the end-user or may be found in icon collections, such asthe Icon Factory. Icons are not only decoration in the sense that theywill be used later as the skin of the model but they also drive theinflation process. At the most fundamental level, the icon mask is usedto derive the basic shape of the model. In more complex cases, asdescribed in more detail below, the color value of each pixel may beanalyzed as well and may be used to control the diffusion process.

In the following description, numerous specific details are set forth inorder to provide a thorough understanding of embodiments of the presentinvention. It will be apparent, however, to one skilled in the art thatembodiments of the present invention may be practiced without some ofthese specific details. In other instances, well-known structures anddevices are shown in block diagram form.

While, for convenience, embodiments of the present invention aredescribed with reference to low resolution 2D icons, the transformationprocess is equally applicable to various other types of end-usersupplied or created input images, such as high resolution 2D images or3D images initially having a constant z-value.

Embodiments of the present invention include various steps, which willbe described below. The steps may be performed by hardware components ormay be embodied in machine-executable instructions, which may be used tocause a general-purpose or special-purpose processor programmed with theinstructions to perform the steps. Alternatively, the steps may beperformed by a combination of hardware, software, firmware and/or byhuman operators.

Embodiments of the present invention may be provided as a computerprogram product, which may include a machine-readable storage mediumtangibly embodying thereon instructions, which may be used to program acomputer (or other electronic devices) to perform a process. Themachine-readable medium may include, but is not limited to, fixed (hard)drives, magnetic tape, floppy diskettes, optical disks, compact discread-only memories (CD-ROMs), and magneto-optical disks, semiconductormemories, such as ROMs, PROMs, random access memories (RAMs),programmable read-only memories (PROMs), erasable PROMs (EPROMs),electrically erasable PROMs (EEPROMs), flash memory, magnetic or opticalcards, or other type of media/machine-readable medium suitable forstoring electronic instructions (e.g., computer programming code, suchas software or firmware). Moreover, embodiments of the present inventionmay also be downloaded as one or more computer program products, whereinthe program may be transferred from a remote computer to a requestingcomputer by way of data signals embodied in a carrier wave or otherpropagation medium via a communication link (e.g., a modem or networkconnection).

In various embodiments, the article(s) of manufacture (e.g., thecomputer program products) containing the computer programming code maybe used by executing the code directly from the machine-readable storagemedium or by copying the code from the machine-readable storage mediuminto another machine-readable storage medium (e.g., a hard disk, RAM,etc.) or by transmitting the code on a network for remote execution.Various methods described herein may be practiced by combining one ormore machine-readable storage media containing the code according to thepresent invention with appropriate standard computer hardware to executethe code contained therein. An apparatus for practicing variousembodiments of the present invention may involve one or more computers(or one or more processors within a single computer) and storage systemscontaining or having network access to computer program(s) coded inaccordance with various methods described herein, and the method stepsof the invention could be accomplished by modules, routines,subroutines, or subparts of a computer program product.

Notably, while embodiments of the present invention may be describedusing modular programming terminology, the code implementing variousembodiments of the present invention is not so limited. For example, thecode may reflect other programming paradigms and/or styles, including,but not limited to object-oriented programming (OOP), agent orientedprogramming, aspect-oriented programming, attribute-oriented programming(@OP), automatic programming, dataflow programming, declarativeprogramming, functional programming, event-driven programming, featureoriented programming, imperative programming, semantic-orientedprogramming, functional programming, genetic programming, logicprogramming, pattern matching programming and the like.

Terminology

Brief definitions of terms used throughout this application are givenbelow.

The terms “connected” or “coupled” and related terms are used in anoperational sense and are not necessarily limited to a direct connectionor coupling.

The term “diffusion” generally refers to the spontaneous spreading ofphysical or conceptual entities such as particles, matter, or ideas overspace and time.

The phrase “extrusion process” generally refers to any process thatwith, or without interpretation of a 2D object creates a 3D object.

The phrases “in one embodiment,” “according to one embodiment,” and thelike generally mean the particular feature, structure, or characteristicfollowing the phrase is included in at least one embodiment of thepresent invention, and may be included in more than one embodiment ofthe present invention. Importantly, such phases do not necessarily referto the same embodiment.

If the specification states a component or feature “may”, “can”,“could”, or “might” be included or have a characteristic, thatparticular component or feature is not required to be included or havethe characteristic.

The term “responsive” includes completely or partially responsive.

Overview

There are many applications, such as rapid prototyping, simulations andpresentations, where non-professional computer end-users could benefitfrom the ability to create simple 3D models. Existing tools are gearedtowards the creation of production quality 3D models by professionalusers with sufficient background, time and motivation to overcome steeplearning curves.

Inflatable Icons is the name of a new technique that can interactivelyextrude 2D pixel-based images into polygon-based 3D models. Dependingupon the complexity of the inflation, minimal or no input may bereceived from end-users. In one embodiment, Inflatable Icons combinediffusion-based image extrusion with a number of interactivelycontrollable parameters to allow end-users to efficiently design 3Dobjects.

The general idea is that in many cases some suitable 2D icon artwork canbe relatively easily found or produced to serve as input for aninteractive 2D to 3D transformation process. Since the extrusion processis intrinsically ambiguous, to achieve the desired results, it ispreferable to have some form of end-user input to appropriately guidethe extrusion process. According to one embodiment, visual feedback isprovided to the end-user in the form of intermediate results of theextrusion process. In this manner, the process is completely visible atany point in time to end-users and can be made interactive to allowend-users to explore the effects of changing various user-controlledparameters.

According to one embodiment, Inflatable Icons are based on an extrusionprocess that adds a third dimension to a two dimensional image. Asmentioned above, however, in alternative embodiments, the initial inputmight be a three-dimensional image that initially has a constant z-valuefor each pixel. Then, the z-values may be subsequently adjusted based onthe extrusion process. Conceptually, the extrusion process can becompared to the inflation of a balloon. An initial image, such as a lowresolution 2D icon, defines the basic shape of the balloon as well asthe image painted onto the balloon. A circular shaped balloon, forinstance, is extruded into a sphere.

For sake of illustration, the examples described herein first introducea simple inflation mechanism and then gradually refine this mechanism byadding user controllable parameters. According to one embodiment, usersare provided with the ability, via a novel graphical user interface, tointeractively steer the extrusion process through these parameters inorder to create intricate 3D objects.

While one intended application domain is the use of Inflatable Icons inmulti-agent simulation authoring tools employed in education, such asAgentSheets or StarLogo, Inflatable Icons are useful for a number ofend-user applications including presentation software, video games, and3D sketching. With multi-agent simulation authoring tools, end-users,typically kids, create complex simulations involving hundreds and eventhousands of agents. These agents are visualized as icons drawn by kids.Inflatable Icons add new features and capabilities to such simulations.For instance, simulation worlds no longer have to adopt a birds-eye, topdown perspective. Instead, a camera can be placed anywhere into asimulation world featuring arbitrary orientation including first andthird person perspectives. 3D can disambiguate the spatial relationshipsbetween objects. For instance, in AgentSheets agents can be stacked ontop of each other. A vase agent can be on top of a table agent, which,in turn, can be on top of a floor agent. In a 2D orthogonal top-downview this often becomes confusing to users. While the quality of a 3Dmodel resulting from the techniques presented herein may not completelysatisfy a professional 3D model builder, the quality is thought to bemore than sufficient for such multi-agent simulation applications andthe like.

According to one embodiment, with the use of Inflatable Icons, end-userscan very quickly create simulation worlds containing large numbers ofsimple 3D objects. In a multi-agent simulation application it is moreimportant for users to be able to visualize the spatial relationshipsbetween agents then to have a high quality 3D representation of anyindividual agent.

FIG. 15 is an example of a computer system 1500 with which embodimentsof the present invention may be utilized. Embodiments of the presentinvention include various steps, which will be described in more detailbelow. A variety of these steps may be performed by hardware componentsor may be tangibly embodied on a computer-readable medium in the form ofmachine-executable instructions, which may be used to cause one or moregeneral-purpose or special-purpose computer processors ormicroprocessors programmed with instructions to perform these steps.Alternatively, the steps may be performed by a combination of hardware,software, and/or firmware. As such, FIG. 15 is an example of a computersystem 1500, such as a workstation, personal computer, laptop, client orserver, upon which or with which embodiments of the present inventionmay be employed.

According to the present example, the computer system includes a bus1530, one or more processors 1505, one or more communication ports 1510,a main memory 1515, a removable storage media 1540, a read only memory1520 and a mass storage 1525.

Processor(s) 1505 can be any future or existing processor, including,but not limited to, an Intel® Itanium® or Itanium 2 processor(s), orAMD® Opteron® or Athlon MP® processor(s), or Motorola® lines ofprocessors. Communication port(s) 1510 can be any of an RS-232 port foruse with a modem based dialup connection, a 10/100 Ethernet port, aGigabit port using copper or fiber or other existing or future ports.Communication port(s) 1510 may be chosen depending on a network, such aLocal Area Network (LAN), Wide Area Network (WAN), or any network towhich the computer system 1500 connects.

Main memory 1515 can be Random Access Memory (RAM), or any other dynamicstorage device(s) commonly known in the art. Read only memory 1520 canbe any static storage device(s) such as Programmable Read Only Memory(PROM) chips for storing static information such as start-up or BIOSinstructions for processor 1505.

Mass storage 1525 may be any current or future mass storage solution,which can be used to store information and/or instructions. Exemplarymass storage solutions include, but are not limited to, ParallelAdvanced Technology Attachment (PATA) or Serial Advanced TechnologyAttachment (SATA) hard disk drives or solid-state drives (internal orexternal, e.g., having Universal Serial Bus (USB) and/or Firewireinterfaces), such as those available from Seagate (e.g., the SeagateBarracuda 7200 family) or Hitachi (e.g., the Hitachi Deskstar 7K1000),one or more optical discs, Redundant Array of Independent Disks (RAID)storage, such as an array of disks (e.g., SATA arrays), available fromvarious vendors including Dot Hill Systems Corp., LaCie, NexsanTechnologies, Inc. and Enhance Technology, Inc. According to oneembodiment, mass storage 1525 has tangibly embodied thereoninstructions, which when executed by processor(s) 1505, cause instancesof one or more of the classes of FIG. 9 to be instantiated to identify acomputer program solution to a problem at issue as described furtherbelow.

Bus 1530 communicatively couples processor(s) 1505 with the othermemory, storage and communication blocks. Bus 1530 can include a bus,such as a Peripheral Component Interconnect (PCI)/PCI Extended (PCI-X),Small Computer System Interface (SCSI), USB or the like, for connectingexpansion cards, drives and other subsystems as well as other buses,such a front side bus (FSB), which connects the processor(s) 1505 tosystem memory.

Optionally, operator and administrative interfaces, such as a display,keyboard, and a cursor control device, may also be coupled to bus 1530to support direct operator interaction with computer system 1500. Otheroperator and administrative interfaces can be provided through networkconnections connected through communication ports 1510.

Removable storage media 1540 can be any kind of external hard-drives,floppy drives, IOMEGA® Zip Drives, Compact Disc—Read Only Memory(CD-ROM), Compact Disc—Re-Writable (CD-RW), Digital Video Disk—Read OnlyMemory (DVD-ROM).

Components described above are meant only to exemplify variouspossibilities. In no way should the aforementioned exemplary computersystem limit the scope of the invention.

Vectorizing (Polygonizing) Icons

An Inflatable Icon, like a regular icon, may include a two-dimensionalpixel array. According to one embodiment, each pixel is represented as acolor and alpha RGBA value (red, green, blue, alpha). For simplicity,the present example uses only a one-bit alpha value: a pixel is eitherfully visible or invisible. FIG. 1 shows a 2D icon 100 in the form of alobster, which will be turned into an Inflatable Icon (400, 500).

The Inflatable Icon has a z_(x,y) value for each x, y coordinate. Thesez values are initially set to zero or some other constant value. Unlikeregular icons, in accordance with various embodiments of the presentinvention, an Inflatable Icon is a true 3D object in the sense that itis represented as 3D polygons having a z_(x,y) value for each x, ycoordinate of the polygons. According to the present example, a simple,but somewhat brute force approach to polygonizing—in terms of number ofpolygons required—is to use triangle strips and represent each pixel asa square consisting of two triangles. As described below, trianglestrips work especially well when rendering objects with smooth shading.In alternative embodiments, other polygonization approaches such astracing may be used to convert 2D raster-based images into 2Dvector/polygon based images not intended to be converted into 3D models.

As a convention, herein the upper left corner of each square is definedto be the reference point representing the z-value for the square.According to alternative embodiments, another reference point of thesquare may be used and/or more than one reference point may be used. Inthe present example, since all the z values are initialized to zero, theinitial set of polygons is a planar set of polygons. FIGS. 2 and 3Arepresent an exemplary polygonization (200, 300) of the 2D icon 100 ofFIG. 1 in accordance with one embodiment of the present invention.

Diffusion-Based Image Inflation

There are a number of ways of implementing an inflation process. InTeddy, for instance, the system uses a skeleton based approach toinflate closed regions with amounts depending on the width of theregions. Wide areas become fat and narrow ones become thin. The approachused by various embodiments of the present invention, by contrast, isimage-based, meaning such Inflatable Icons are based on a diffusionprocess taking place at the pixel level.

Diffusion is a gradual process in which physical as well as conceptualmatter, such as molecules, heat, light, gas, sound, and ideas are spreadover an n-dimensional space in time. In computer graphics diffusion andrelated operations are often used as technique to smooth or to deform 3Dobjects.

According to various embodiments, the notion of inflation is capturedwith a biased diffusion process. Unlike most diffusion applications,including the use of diffusion for smoothing, biased diffusion does notattempt to preserve the total amount of matter. A biased diffusionintentionally changes the amount of matter. The resulting processresembles inflation quite closely. The bias introduced to diffusion is ameasure for pressure. Pressure added to an Inflatable Icon graduallyextrudes the image-based mesh from a flat shape into a 3D model. This isone aspect that makes the biased diffusion process unique in the sensethat it does not transforms one 3D object into another but effectivelyturns 2D objects into 3D objects.

According to one embodiment, biased diffusion can be represented with adifference equation computing a new value based on the four Newmanneighbors (north, south, east, west) and itself. The same diffusionprocess applies for different neighborhoods as long as at least oneneighbor is selected as input to the diffusion process. Diffusion alsoworks in linear, 2D, 3D, n-D applications and for non orthogonalnetworks.

Example Biased Diffusion Equation

z _(x,y) =D(z _(x−1,y) +z _(x+1,y) +z _(x,y−1) +z _(x,y+1)−4z _(x,y)+p)+z _(x,y)   EQ #1where, D is the diffusion coefficient [0 . . . 0.5], and p is a numbercorresponding to pressure.

In the present example, a positive pressure, p, inflates, while anegative pressure deflates. All z values are initialized to 0. Z valuesof invisible pixels remain always 0. Masked pixels surrounding theLobster icon will clamp down, i.e., the pixels at the edge of the iconwill pull the diffusion values down to zero. Pixels inside the icon faraway from the edge will assume the highest z values.

Applying pressure to the Inflatable Icon will gradually pump the Lobstericon up as illustrated in FIGS. 3B and 3C.

As illustrated in FIGS. 4 and 5, rendering polygons filled and enablinglighting will make the Inflatable Icon look like a solid object. Becauseof the regular grid structure of the underlying image it is particularlysimple to implement Gouraud shading by computing normal vectors for eachvertex and not just for each triangle face as follows:

$\begin{matrix}{{\overset{\rightarrow}{n}}_{x,y} = \begin{pmatrix}{z_{{x - 1},y} - z_{{x + 1},y}} \\{z_{x,{y - 1}} + z_{x,{y + 1}}} \\{2m}\end{pmatrix}} & {{EQ}\mspace{14mu}{\# 2}}\end{matrix}$

where, m is the grid size (m=Δx=Δy)

The Inflated Icon can also be rendered using simpler shading approaches,such as flat shading, or more complex shading, such as Phong shading.

While embodiments of the present invention are described with referenceto the biased diffusion equation of EQ #1 (above), it is contemplatedthat various other equations may be employed, including, but not limitedto the following more general biased diffusion equation.

$\begin{matrix}{z_{0,{t + 1}} = {z_{0,t} + {D\left\lbrack {p + {\sum\limits_{i = 1}^{n}\;\left( {z_{i,t} - z_{0,t}} \right)}} \right\rbrack}}} & {{EQ}\mspace{14mu}{\# 3}}\end{matrix}$User Control

Below, a number of parameters that provide users with extrusion optionsare described. In addition to an ever-growing number of parameters, usertesting demonstrates continuous feedback during the extrusion processhelps users enormously in building inflatable icons. Depending upon theparticular embodiment, feedback may be presented as parameters in anumerical form or feedback may be provided by displaying intermediateresults of the diffusion process. The nature of the diffusion process ishighly iterative. The extrusion of an image into inflated iconstypically requires dozens to hundreds of iterations. Instead of keepingthis computation hidden behind the scenes, according to one embodiment,it is made part of the interface explicitly revealing the diffusionprocess to its users as a continuous inflation animation. This allowsusers to interactively explore the inflation process.

Antialiasing

According to one embodiment, Icons are low-resolution, small,two-dimensional images. A typical desktop icon has a size of 32×32pixels. Even so called “huge” icons (in Apple's OS X) have a size of128×128 pixels. Small size, on the one hand, makes the inflationcomputationally process feasible, but, on the other hand, results inshapes that have a smooth surfaces but jagged edges.

As illustrated by FIG. 6A, a 32×32 pixel icon in the form of a 1 bitalpha circle icon manifests highly visible aliasing.

Icon Inflation turns the circle of FIG. 6A into a hemisphere with asmooth surface but jagged edge as shown in FIG. 6B. FIG. 7A is aperspective view of FIG. 6B. In this view, the edge of a rotatedhemisphere will look even worse. The diffusion process used for theinflation also helps to smooth the edge.

A simple, yet effective, antialiasing affect is achieved through aclipping plane 720 parallel to the x/y plane with a small z value.According to one embodiment, the selection of a z value for the clippingplane is user controlled through a slider interface, similar to the oneshown in FIG. 14. In alternative embodiments, this process may beautomated. A small z value will preserve the original shape but stillmanifest the jagged edges. A large z value, in contrast, will make theedge of the shape smooth but will also thin out the shape. FIGS. 8A and8B illustrates how the sharp tip of a 2D heart icon gets lost during thediffusion and clipping process because of the smoothing.

Pressure Modulation

Uniform diffusion does not always create the desired affect. In manycases some regions of an icon need more pressure and others need lesspressure for an inflated icon to look right. FIG. 9B illustrates aninflated version of the teddy bear icon illustrated in FIG. 9A. Theinflated icon in FIG. 9B does not look particularly compellingespecially when viewed from the side. One would expect the black nose tobe more prominently extruded and the ears more pronounced. Without thisthe resulting shape has the appearance of an inflated balloon with theface of the teddy bear merely painted on.

According to one embodiment, to achieve the desired effect, theuniversal pressure, p, in the biased diffusion equation presented abovemay be replaced with a pixel coordinate depending function. Thisfunction may modulate the pressure for each pixel based on variousfactors, including, but not limited to absolute pixel location, thepixel's proximity to a selected pixel, the pixel color, whether thepixel is among a set of selected pixels (by a magic wand, bounding boxor other selection mechanism, for example).

Exemplary color-based modulation functions are as follows for the teddybear icon:

m(black)=1;

m(white)=−3;

otherwise m=0.

FIG. 9C illustrates an exemplary solution. According to this example,the black pixels representing the nose modulate the pressure positivelywhereas the three white pixels serving as edge between the main sphereof teddy's head and his ears modulate the pressure negatively.

While end-users may in some embodiments specify color modulationfunctions, in other embodiments, end-users simply pick colors (or colorranges) from palettes. For each selected color, they may use a graphicalinput mechanism, such as a slider, for example, with a limited positiveand negative range to define a modulation bias. Sliders provide a goodinteractive means to control color-based pressure modulation.

As indicated above, the modulation mechanism can be generalized inmultiple ways. For example, instead of applying the modulation functionto all the visible pixels of an icon, a user may alternatively select asubset of pixels to be used for the diffusion process. This approachallows a user to manually shape an icon by inflating or deflatinguser-defined regions of icons. Additionally, the user may select for anopen-ended set of modulation functions to create specialinflation/deflation effects. Users may even provide their own functionsto be used in the diffusion process. The alpha channel of an icon/imagemay consist of more than one bit of information, e.g., 256 values ofgray, to define a continuous transparency value of pixels. This alphavalue can be used to further guide the inflation process.

FIG. 10A illustrates a uniformly inflated 3D frog icon 1000. FIG. 10Billustrates a non-uniformly inflated 3D frog icon 1050 resulting from aselection-based inflation in accordance with an embodiment of thepresent invention. In one embodiment, an end user is provided with toolsthat allow the end user to make and extend pixel selections. Forexample, a magic wand pixel selection tool may select pixels based onpixel color values. Alternatively, the magic wand pixel selection toolmay select pixels within a preselected or configurable distance from thehot spot associated with the magic wand. In the context of the presentexample, the 3D frog icon 1000 fails to highlight the strong legs of thefrog. Using the magic wand pixel selection tool, the frog's legs may beselected and inflated more as illustrated in FIG. 10B. According to thisexample, selection of the darker pixels representing the legs nosecauses more pressure to be applied to the selected region whereas thepixels outside of the selected region remain in their previous state.

Noise

Objects found in nature, such as rocks, often do not have smoothsurfaces. Noise can be added to give inflatable icons a more organiclook. According to one embodiment, users are provided with two noiseparameters:

-   -   Amount: Control the noise amplitude.    -   Bumpiness: Should the surface be more spiky or smooth?

As an example, if an end-user wanted to create a model of a rock, a grayblob icon would first be drawn quickly, see FIG. 11A, for example, andthen inflated as in FIG. 11B.

FIG. 12 illustrates the addition of noise to the inflated icon of FIG.11B. Noise is added, by using a random function, to each z_(x,y) of theinflated icon with values in between −amplitude and +amplitude. In manycases, including this one, the random spikes added to the surface mayrequire smoothing.

Diffusion may be applied again to smooth the surface. The bumpinessparameter controls the number of follow-up diffusion cycles. With eachadditional diffusion cycle, the inflated icon becomes smoother as can beseen in FIGS. 13A and 13B. FIG. 13A illustrates two iterations ofdiffusion and FIG. 13B illustrates three iterations of diffusion.Continued smoothing will eventually turn the inflated icon back into itsoriginal shape (before the noise was applied).

Interface

According to one embodiment, a simple graphical user interface isprovided with the main design goal to facilitate exploration. In theexample of FIG. 14, the pressure parameter is accompanied with a numberof optional parameters, such as the ones described above. Additionally,users can specify orientation (should an inflated icon lay on theground, such as the lobster icon, or should it be upright, such as theicon of a tree), symmetry (e.g., a circle can be turned into a completesphere combining positively and negatively inflated copies of a circleicon), and simple composition of different inflatable icons into morecomplex shapes.

FIG. 14 shows the inflation of a 48×48 pixel icon representing alandscape 1420. Positive pressure inflates the landscape. Color-basedpressure shapes the mountains and the river valley: white colorrepresents snow; blue color represents the river. Noise makes themountains look rough. According to one embodiment, the view showing theInflated Icon is provided via an OpenGL viewer that includes cameracontrols (zoom, rotate, pan), which allow users to explore their 3Dworld from different perspectives.

The interactive nature of the process keeps users in the design loop. Achange of pressure will result in inflation/deflation of the icon byrunning the diffusion process for about 50 steps. In the presentexample, the inflation process is stable in the sense that it converges.Only for extreme values of pressure will the icon inflation becomenumerically instable.

According to one embodiment, feedback may be provided to end-users byillustrating intermediate states of the diffusion process. For example,following each individual diffusion step or n diffusion steps, thedisplay may be updated providing users a sense of the process. At thesame time, users may continue to edit their icons changing the shape,the texture and, in the case of color-based or pixel location-basedpressure modulation, selectively controlling the ongoing diffusionprocess.

Discussion

Not every icon is suitable to icon inflation. Especially more modemicons that have a three dimensional look may not inflate well for tworeasons. First, their shape is pre-distorted to look like a 3D object.The inflatable icon approach assumes that icons are flat two-dimensionalprojections. A second problem can be shading that, again, is used tocreate a three dimensional appearance. The inflated icon will inheritthe statically shaded texture from its two dimensional icon. Since theinflated icon is a true three-dimensional object placed into athree-dimensional world with potentially many light sources the resultmay be highly confusing. In some cases, the user can clean up the iconwith an icon editor. However, depending on the complexity of the iconthis may require a considerable effort.

Some vectorization/polygonization approaches may create models withlarge mesh sizes. Even a small 32×32 icon may have over 1000 polygons.Assuming that applications, such as simulations, may feature thousandsof Inflatable Icons performance could become an issue. We have comparedthe time required to draw a regular icon with the time to draw anInflatable Icon.

Test machine: Macintosh G4, 800 Mhz, OS X 10.2.3, Video Board, AT1Mobile Radeon; test icon: Lobster (FIG. 1):

-   -   2D Icon: 280 ps—using native operating system call; and    -   3D Inflatable Icon: 220 μs—OpenGL 1.3, display lists, one light        source, Gouraud shading.

The absolute numbers are irrelevant, however, the fact that even withoutoptimizations such as OpenGL extensions (e.g., compiled vertex arrays)it took less time to create a 3D inflatable icon than a regular 2D oneis amazing.

Models produced by icon inflation tend to be smooth making them viablecandidates for well-established mesh reduction algorithms ifoptimization is required.

For large icons it may take pixels far away from the icon edge a longtime to rise because the pixels that need to raise the most aresurrounded by a very large number of pixels pulling them down. Theresult is that it takes many more iterations to inflate a large icon.According to one embodiment, the Inflatable Icon process may be usedwith large icons by first downsampling large images, inflating thedownsampled image and then applying the original image as the skin ofthe resulting 3D model. This way the inflation technique can be appliedto images of arbitrary size.

Inflatable Icons are not meant to replace more complex approaches andsophisticated tools for creating 3D models. In applications such assimulation authoring environments end-users, such as kids, need to beable to create good-enough 3D models in seconds or minutes but not inhours. The type of models that can be extruded from a single surface isintrinsically limited. On the other hand, the approach of InflatableIcons can be extended to introduce more complex extrusion functions andto add sophisticated composition functions. For example, a human modelcould be assembled from individual body parts, such as noses, ears,fingers, etc., created as individual inflated icons. In this manner, anynumber of icons could be inflated and then composed into an aggregatemodel.

FIG. 16 is a flow diagram illustrating an image extrusion processaccording to one embodiment of the present invention. According to thepresent example, the image extrusion process begins at block 1605. Atblock 1605, a computer system receives an image (e.g., an icon) uponwhich an image-based diffusion process will be performed. The image canbe either a 2D image or a 3D image with the z-components set to zero oranother constant value. In either case, the icon is then polygonized(e.g., using triangles) at block 1610.

The icon is then inflated at block 1615 by applying one or moreiterations of an image-based diffusion process. A current state of theinflatable icon may then be rendered on a display device, such as amonitor, to provide the end-user with visual feedback at block 1620.

At block 1625, in an embodiment providing interactive and/or end-usercontrollable parameters, the user may be provided with the ability tochange the shape, texture and/or pressure modulation function associatedwith the inflatable icon or other user controllable parameter. If theuser decides to make a change, processing continues with block 1605 or1630 as appropriate. Once the inflation process is completed and theuser decides to not make anymore changes, the inflatable icon may thenbe smoothed, deformed, and or shaded at step 1630. The shading can beperformed by a one or more methods such as flat shading, Phong shading,and/or Gourand shading.

At this point, at block 1635, the user may be provided with the optionof adding noise to the inflated icon. At decision block 1640, the usermay then be provided with an opportunity to perform additionalsmoothing, shading, and/or deformation of the inflatable icon if adetermination is made that smoothing, deforming and/or shading is notcomplete. Once the user is satisfied with the general appearance of theinflatable icon, the user may have the option of performing final touchups at block 1645. For example, the inflatable icon may be modified withan icon editor.

At block 1650, the current state of the inflatable icon is rendered on adisplay.

CONCLUSIONS

An interactive, biased diffusion-based 2D image to 3D model extrusionapproach called Inflatable Icons has been presented. Inflatable Iconscan be produced effectively by quickly sketching 2D icons or usingexisting 2D icons and turning them, under the control of a user, into atrue, polygon-based, 3D model. The diffusion approach is versatile andcan easily be extended to create a growing repertoire of extrusionfunctions.

Inflatable Icons are well suited for applications involving end-userdevelopment. End-user developers are typically not professional artists.They may not have the training, motivation, or time to learn how to useprofessional level 3D modeling tools. Applications of Inflatable Iconsinclude the generation of simple 3D models for simulations orpresentations.

In conclusion, the present invention provides novel systems, methods andtechniques for generating simple 3D models for simulations,presentations, and the like. While detailed descriptions of one or moreembodiments of the invention have been given above, variousalternatives, modifications, and equivalents will be apparent to thoseskilled in the art without varying from the broader spirit and scope ofthe invention. The specification and drawings are, accordingly, to beregarded in an illustrative rather than a restrictive sense. Therefore,the above description and drawings should not be taken as limiting thescope of the invention, which is defined by the appended claims.

1. A method comprising: a vectorizing module polygonizing an input image to produce an inflatable image by representing a set of pixels making up the input image as a plurality of polygons; an extrusion module extruding the inflatable image by generating appropriate z-coordinate values for a reference point associated with each polygon of the plurality of polygons of the inflatable image based upon a biased diffusion process; an interface module allowing end-user controlled pressure modulation by (i) adjusting one or more modulation functions employed by the biased diffusion process based upon end-user input regarding relative modulation bias for a selected set of one or more pixels associated with the inflatable image or (ii) applying the biased diffusion process to only the selected set of one or more pixels; and wherein the vectorizing module, the extrusion module and the interface module are implemented in one or more computer processors and one or more computer-readable storage media of one or more computer systems, the one or more computer-readable storage media having instructions tangibly embodied therein that are executable by the one or more computer processors.
 2. The method of claim 1, wherein said representing the set of pixels as a plurality of polygons comprises representing each pixel in the set of pixels as a plurality of triangles.
 3. The method of claim 1, further comprising the interface module providing visual feedback to an end-user by rendering a current state of the inflatable image on a display device during an intermediate point of said biased diffusion process.
 4. The method of claim 1, further comprising the interface module allowing end-user controlled color-based pressure modulation by adjusting color modulation functions employed by the biased diffusion process based upon end-user input regarding relative modulation bias for one or more colors associated with the input image.
 5. The method of claim 1, further comprising the interface module allowing end-user controlled noise to be applied to the inflatable image, wherein a noise parameter controlled by the end-user includes one or more of a noise amplitude and a number of diffusion iterations.
 6. The method of claim 1, wherein the input image comprises a two dimensional icon.
 7. The method of claim 1, wherein the input image comprises a three dimensional image.
 8. The method of claim 1, further comprising: prior to said polygonizing an input image, generating the input image by receiving a large image, generating a down sampled image by down sampling the large image, and using the down sampled image as the input image; and after said extruding the inflatable image, applying the large image as skin on the extruded inflatable image.
 9. A program storage device readable by a computer system, tangibly embodying a program of instructions executable by one or more computer processors of the computer system to perform method steps for creating an inflatable icon, said method steps comprising: polygonizing an input image to produce the inflatable icon by representing a set of pixels making up the input image as a plurality of polygons; extruding the inflatable icon by generating appropriate z-coordinate values for a reference point associated with each polygon of the plurality of polygons of the inflatable icon based upon a biased diffusion process; allowing end-user controlled pressure modulation by (i) adjusting one or more modulation functions employed by the biased diffusion process based upon end-user input regarding relative modulation bias for a selected set of one or more pixels associated with the inflatable icon or (ii) applying the biased diffusion process to only the selected set of one or more pixels.
 10. The program storage device of claim 9, wherein said representing the set of pixels as a plurality of polygons comprises representing each pixel in the set of pixels as a plurality of triangles.
 11. The program storage device of claim 9, wherein said method steps further comprise providing visual feedback to an end-user by rendering a current state of the inflatable icon on a display device during an intermediate point of said biased diffusion process.
 12. The program storage device of claim 9, wherein said method steps further comprise allowing end-user controlled color-based pressure modulation by adjusting color modulation functions employed by the biased diffusion process based upon end-user input regarding relative modulation bias for one or more colors associated with the input image.
 13. The program storage device of claim 9, wherein said method steps further comprise allowing end-user controlled noise to be applied to the inflatable icon, wherein a noise parameter controlled by the end-user includes one or more of a noise amplitude and a number of diffusion iterations.
 14. The program storage device of claim 9, wherein the input image comprises a two dimensional icon.
 15. The program storage device of claim 9, wherein the input image comprises a three dimensional image.
 16. The program storage device of claim 9, wherein said method steps further comprise: prior to said polygonizing an input image, generating the input image by receiving a large image, generating a down sampled image by down sampling the large image, and using the down sampled image as the input image; and after said extruding the inflatable icon, applying the large image as skin on the extruded inflatable icon.
 17. A method comprising: a vectorizing module polygonizing an input image to produce an inflatable image by representing a set of pixels making up the input image as a plurality of polygons; an extrusion module extruding the inflatable image without use of three dimensional information about the input image by applying a biased diffusion process to generate appropriate z-coordinate values for a reference point associated with each polygon of the plurality of polygons; and wherein the vectorizing module and the extrusion module are implemented in one or more computer processors and one or more computer-readable storage media of one or more computer systems, the one or more computer-readable storage media having instructions tangibly embodied therein that are executable by the one or more computer processors.
 18. The method of claim 17, further comprising an interface module allowing end-user controlled pressure modulation by adjusting one or more modulation functions employed by the biased diffusion process based upon end-user input regarding relative modulation bias for a selected set of one or more pixels associated with the inflatable image, wherein the interface module is implemented in the one or more computer processors and the one or more computer-readable storage media.
 19. The method of claim 17, further comprising an interface module allowing end-user controlled pressure modulation by applying the biased diffusion process to only a selected set of one or more pixels associated with the inflatable image, wherein the interface module is implemented in the one or more computer processors and the one or more computer-readable storage media.
 20. The method of claim 17, further comprising an interface module providing visual feedback to an end-user by rendering a current state of the inflatable image on a display device during an intermediate point of said biased diffusion process, wherein the interface module is implemented in the one or more computer processors and the one or more computer-readable storage media. 